import type { RouteRecordRaw } from 'vue-router'

// 定义业务路由表
export const projectRouter: RouteRecordRaw[] = [
  {
    path: '/home/map2d',
    name: 'home/map2d',
    component: () => import('@/views/map2d/index.vue'),
    meta: { title: 'openlayers地图', show: true, icon: 'icon_dataPreview', isLink: true }
  },
  {
    path: '/home/map3d',
    name: 'home/map3d',
    component: () => import('@/views/map3d/index.vue'),
    meta: { title: 'cesium地图', show: true, icon: 'icon_3d', isLink: true }
  },
  {
    path: '/home/systemManage',
    name: 'home/systemManage',
    redirect: '/home/systemManage/roles',
    meta: { title: '系统管理', show: true, icon: 'icon_systemManage', isLink: false },
    children: [
      {
        path: '/home/systemManage/roles',
        name: 'home/systemManage/roles',
        component: () => import('@/views/roles/index.vue'),
        meta: { title: '角色管理', show: true, icon: 'icon_角色管理', isLink: false }
      },
      {
        path: '/home/systemManage/user',
        name: 'home/systemManage/user',
        component: () => import('@/views/user/index.vue'),
        meta: { title: '用户管理', show: true, icon: 'icon_用户管理', isLink: false }
      },
      {
        path: '/home/systemManage/log',
        name: 'home/systemManage/log',
        component: () => import('@/views/log/index.vue'),
        meta: { title: '日志管理', show: true, icon: 'icon_数据资源管理', isLink: false }
      }
    ]
  }
]
